package com.example.dp886;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.dp886.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {

    ActivityMainBinding binding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        /*setContentView(R.layout.activity_main);*/

        /*HttpUtil.sendOkHttpRequest("http://guolin.tech/api/china", new Callback() {
            @Override
            public void onFailure(@NotNull Call call, @NotNull IOException e) {

            }

            @Override
            public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
                String result = response.body().string();
                Log.d("Test", "onResponse: "+ result);
                boolean flag = false;
                try {
                    flag = Utility.handleProvinceResponce(result);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
                Log.d("Test", "onResponse save: "+ flag);
            }
        });*/
    }
}